<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<%@include file="/common.jsp" %>
</head>
<body>
	<div>
		<div>
			<table border="1">
				<thead><th>序号</th><th>书名</th><th>数量</th></thead>
				<c:forEach items="${orders }" var="o" varStatus="status">
					<tr>
						<td>${status.index+1 }</td>
						<td>${o.bookName }</td>
						<td>${o.count }</td>
					</tr>
				</c:forEach>
			</table>
		</div>
		<div>
			<button onclick="window.location.href='../sec/store'">返回</button>
			<button onclick="window.location.href='../sec/buy'">购买</button>
		</div>
	</div>
</body>
</html>